- Posted on
- Featured Image
In the world of Linux Bash scripting and terminal commands, some utilities may seem obscure or trivial until their true potential is unveiled. The yes command is one such tool. Known for its simplicity, the yes utility is adept at sending repeated strings to standard output, an ability that can be harnessed in multiple practical scenarios. Today, we will explore how to install and effectively utilize the yes command across different Linux distributions and dive into some of its practical applications. At its core, the yes command is deceptively simple: it outputs a specific string repeatedly until it is interrupted (such as by CTRL+C) or piped into another command. The default output is the string y but can be customised to any text.